package com.xzqwjw.taskmanager;

import com.xzqwjw.taskmanager.R;

import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;

import android.os.Bundle;
import android.view.Window;

import com.xzqwjw.taskmanager.fragment.ContentFragment;
import com.xzqwjw.taskmanager.fragment.TitleFragment;

public class MainActivity extends AppCompatActivity {

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    // 去除原来的标题栏
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    setContentView(R.layout.activity_main);
    FragmentManager manager = getSupportFragmentManager();
    FragmentTransaction transaction = manager.beginTransaction();
    transaction.add(R.id.ll_title, new TitleFragment());
    transaction.add(R.id.ll_content, new ContentFragment());
    transaction.commit();
  }

}